import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 保养
  {
    path: '/maintenance',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'maintenance',
    meta: {
      title: '保养管理',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'plan',
        name: 'MaintianPlan',
        meta: { title: '保养计划', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/maintenance/plan/index.vue')
      },
      {
        path: 'task',
        name: 'MaintainTask',
        meta: { title: '保养任务', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/maintenance/task/index.vue')
      },
      {
        path: 'standard',
        name: 'MaintainStandard',
        meta: { title: '保养标准', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/maintenance/standard/index.vue')
      }
    ]
  }
]
